package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Travel;
import cn.wolfcode.luowowo.article.domain.TravelContent;
import cn.wolfcode.luowowo.article.query.TravelQueryObject;
import cn.wolfcode.luowowo.common.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 游记
 */
public interface ITravelService {
    int deleteByPrimaryKey(Long id);

    int insert(Travel record);

    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    int updateByPrimaryKey(Travel record);

    PageInfo<Travel> query(TravelQueryObject qo);

    Long saveOrUpdate(Travel travel);

    TravelContent getContent(Long id);

    List<Travel> getViewNumTop3(Long id);

    List<Travel> list();

    PageInfo<Travel> getByAuthorId(Long authorId,TravelQueryObject qo);

    Travel queryById(Long tid);

    List<Long> queryByAuthor(Long userId);
}
